import type {CEType, Viewer} from "vendor/components/pro-cesium";

/**
 * 影像图
 */
export const loadImageMap = (CE: CEType, viewer: Viewer) => {
    let baselayer = CE.ImageryLayerFactory.createSingleTileImageryLayer({
        url: require("./img/offlineMap/world_img.jpg").default,
    })
    viewer.addBaseLayer(baselayer)
}

/**
 * 单图片
 */
export const loadImageMap1 = (CE: CEType, viewer: Viewer) => {
    let baselayer = CE.ImageryLayerFactory.createSingleTileImageryLayer({
        url: require("./img/offlineMap/world_d.jpg").default,
    })
    viewer.addBaseLayer(baselayer)
}

/**
 * 单图片(夜晚)
 */
export const loadImageMap2 = (CE: CEType, viewer: Viewer) => {
    let baselayer = CE.ImageryLayerFactory.createSingleTileImageryLayer({
        url: require("./img/offlineMap/world_n.jpg").default,
    })
    viewer.addBaseLayer(baselayer)
}

/**
 * 单图片(蓝色)
 */
export const loadImageMap3 = (CE: CEType, viewer: Viewer) => {
    let baselayer = CE.ImageryLayerFactory.createSingleTileImageryLayer({
        url: require("./img/offlineMap/world_b.jpg").default,
    })
    viewer.addBaseLayer(baselayer)
}
